<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
<f:loadBundle var="text" basename="#{sbList.bundleName}"/>
    <head>
        <title>#{text['sbList.title']}</title>
        <meta name="heading" content="#{text['sbList.heading']}"/>
        <meta name="menu" content="SbMenu"/>
    </head>
<body id="sbList">
<h:form id="editSb">

<h:commandButton value="#{text['button.add']}" action="add" id="add" immediate="true" styleClass="button"/>
<h:commandButton value="#{text['button.done']}" action="mainMenu" id="cancel" immediate="true" styleClass="button" style="margin-left: 5px"/>

<t:dataTable id="sbs" var="sb" style="margin-top: 10px"
    value="#{sbList.sbs}" rows="25" sortColumn="#{sbList.sortColumn}"
    sortAscending="#{sbList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="sbmc" arrow="true">
                <h:outputText value="#{text['sb.sbmc']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{sbForm.edit}" value="#{sb.sbmc}">
            <f:param name="sbid" value="#{sb.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="cd" arrow="true">
                <h:outputText value="#{text['sb.cd']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.cd}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="grjz" arrow="true">
                <h:outputText value="#{text['sb.grjz']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.grjz}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="grsj" arrow="true">
                <h:outputText value="#{text['sb.grsj']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.grsj}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="operation" arrow="true">
                <h:outputText value="#{text['sb.operation']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.operation}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="optdate" arrow="true">
                <h:outputText value="#{text['sb.optdate']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.optdate}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="sbfl" arrow="true">
                <h:outputText value="#{text['sb.sbfl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.sbfl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="sjsm" arrow="true">
                <h:outputText value="#{text['sb.sjsm']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.sjsm}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="sl" arrow="true">
                <h:outputText value="#{text['sb.sl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.sl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="username" arrow="true">
                <h:outputText value="#{text['sb.username']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.username}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="version" arrow="true">
                <h:outputText value="#{text['sb.version']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.version}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xh" arrow="true">
                <h:outputText value="#{text['sb.xh']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.xh}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xntd" arrow="true">
                <h:outputText value="#{text['sb.xntd']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{sb.xntd}" escape="true"/>
    </t:column>
</t:dataTable>

<ui:include src="/common/tableFooter.xhtml">
    <ui:param name="tableName" value="sbs"/>
</ui:include>

<script type="text/javascript">
    highlightTableRows("editSb:sbs");
</script>

</h:form>
</body>
</f:view>
</html> 